#import "AlchemyReverieView.h"


@implementation AlchemyReverieView



- (void)setFlourishVortexBlaze:(AlchemyReverieModel *)flourishVortexBlaze {
	_flourishVortexBlaze = flourishVortexBlaze;

	//: 配置cell的UI

	self.kingdomLabel.text = [flourishVortexBlaze.cactusFlourishHumble stringValue];

	self.nostalgiaZebraBalanceLabel.text = flourishVortexBlaze.thriveFlow;

[self.thriveOnyxNightfallImageView sd_setImageWithURL:[NSURL URLWithString:flourishVortexBlaze.cactusFlourishHumble.stringValue] placeholderImage:nil];



}
- (UILabel *)nostalgiaZebraBalanceLabel {
	if (!_nostalgiaZebraBalanceLabel) {
	
        _nostalgiaZebraBalanceLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _nostalgiaZebraBalanceLabel.text = @"label_3";
        _nostalgiaZebraBalanceLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
        _nostalgiaZebraBalanceLabel.textColor = [UIColor colorWithRed:61/255.0 green:186/255.0 blue:196/255.0 alpha:0.8];
        _nostalgiaZebraBalanceLabel.textAlignment = NSTextAlignmentLeft;
        _nostalgiaZebraBalanceLabel.numberOfLines = 0;
	}
	return _nostalgiaZebraBalanceLabel;
}

//: 设置brightenKeyhole的圆角
- (void)rippleFlutter:(UIImageView *)quenchHarbingerGrasp wandererSereneMelodic:(CGFloat)hammer {
	quenchHarbingerGrasp.layer.cornerRadius = hammer;
	quenchHarbingerGrasp.layer.masksToBounds = YES;
}

- (UIImageView *)odysseyAnticipateImageView {
	if (!_odysseyAnticipateImageView) {
	
        _odysseyAnticipateImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _odysseyAnticipateImageView.contentMode = UIViewContentModeScaleAspectFill;
        _odysseyAnticipateImageView.clipsToBounds = YES;
        _odysseyAnticipateImageView.layer.cornerRadius = 17;
        _odysseyAnticipateImageView.layer.masksToBounds = YES;
        _odysseyAnticipateImageView.size = CGSizeMake(199, 151);
        _odysseyAnticipateImageView.left = 25;
        _odysseyAnticipateImageView.top = 18;
        UIImage *hoverZenithYard = [UIImage imageNamed:@"images/image_5.png"];
        if (hoverZenithYard) {
	        _odysseyAnticipateImageView.image = hoverZenithYard;
        }
	}
	return _odysseyAnticipateImageView;
}

- (void)echoesLayout {

    //: 描述_0
    UITextField *tranquilOdysseyFable = [[UITextField alloc] init];
    self.swayQuestTextField = tranquilOdysseyFable;
    [self addSubview:tranquilOdysseyFable];
	[self.swayQuestTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(112);
		make.height.mas_equalTo(146);
		make.top.equalTo(@(30));
		make.bottom.equalTo(@(25));
	}];


    //: 描述_1
    self.kingdomLabel = [[UILabel alloc] init];
    self.kingdomLabel.size = CGSizeMake(176, 75);
    self.kingdomLabel.left = 26;
    self.kingdomLabel.top = 5;
    self.kingdomLabel.text = @"label_1";
    self.kingdomLabel.font = [UIFont systemFontOfSize:12 weight:UIFontWeightRegular];
    self.kingdomLabel.textColor = [UIColor colorWithRed:7/255.0 green:203/255.0 blue:20/255.0 alpha:0.7];
    self.kingdomLabel.textAlignment = NSTextAlignmentRight;
    self.kingdomLabel.numberOfLines = 3;
    [self addSubview:self.kingdomLabel];


    //: 描述_2
    UITextView *suspicionFlexibility = [UITextView new];
    suspicionFlexibility.size = CGSizeMake(158, 31);
    suspicionFlexibility.left = 44;
    suspicionFlexibility.top = 42;
    self.whimsyPulseTextView = suspicionFlexibility;
    [self addSubview:suspicionFlexibility];

	//: 描述_3
	[self addSubview:self.nostalgiaZebraBalanceLabel];
	[self.nostalgiaZebraBalanceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(113);
		make.height.mas_equalTo(172);
		make.bottom.equalTo(@(22));
	}];


    //: 描述_4
    UIImageView *brightenKeyhole = [UIImageView new];
    brightenKeyhole.contentMode = UIViewContentModeScaleAspectFill;
    brightenKeyhole.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self rippleFlutter:brightenKeyhole wandererSereneMelodic:13];
    brightenKeyhole.size = CGSizeMake(94, 129);
    brightenKeyhole.left = 47;
    brightenKeyhole.top = 26;
    UIImage *undertowInspirePioneer = [UIImage imageNamed:@"images/image_4.png"];
    if (undertowInspirePioneer) {
	    brightenKeyhole.image = undertowInspirePioneer;
    }
    self.thriveOnyxNightfallImageView = brightenKeyhole;
    [self addSubview:brightenKeyhole];

	//: 描述_5
	[self addSubview:self.odysseyAnticipateImageView];
}


@end